//
//  KLMahuaCollectionViewCell.m
//  KL
//
//  Created by mac on 15/12/14.
//  Copyright © 2015年 zhouxubin. All rights reserved.
//

#import "KLMahuaCollectionViewCell.h"
#import "JokesViewController.h"

@interface KLMahuaCollectionViewCell ()
@property (nonatomic, strong) JokesViewController *jokesVc;

@end

@implementation KLMahuaCollectionViewCell

- (void)awakeFromNib {
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Jokes" bundle:nil];
    JokesViewController *vc = [sb instantiateInitialViewController];
    self.jokesVc = vc;
    vc.view.frame = self.bounds;
    [self.contentView addSubview:vc.view];
}

- (void)setUrlString:(NSString *)urlString {
    _urlString = urlString;
    self.jokesVc.urlString = urlString;
}

- (void)setIndex:(NSInteger)index {
    _index = index;
    self.jokesVc.index = index;
}

@end
